<?php

namespace common\validate;

class Tenant extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // selectDepartmentUser 验证规则定义
    public function sceneSelectDepartmentUser()
    {
        return $this
            ->append("param", "require")
            ->append("param.page", "array");
    }

    // removeTenantUser 验证规则定义
    public function sceneRemoveTenantUser()
    {
        return $this
            ->append("param.tenant_id", "require|integer")
            ->append("param.user_id", "require|integer");
    }
}
